package cn.exrick.xboot.modules.AccessControl.dao.mapper;

import cn.exrick.xboot.modules.AccessControl.AccessControlUserDto.AcUserForm;
import cn.exrick.xboot.modules.AccessControl.AccessControlUserDto.Acdto;
import cn.exrick.xboot.modules.AccessControl.AccessControlUserDto.UserDto;
import cn.exrick.xboot.modules.base.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.exrick.xboot.modules.AccessControl.entity.AccessControlUser;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * AccessControlUser数据处理层
 * @author portal
 */
public interface AccessControlUserMapper extends BaseMapper<AccessControlUser> {

    /**
     * 连表查询获取用户（user表与内外网权限中间表），查询出没有在中间表的user信息
     * @return
     */

    Page<UserDto> findUserByAccessControl(Page page, @Param("user") AcUserForm user);

    /**
     * 连表查询获取用户（user表与内外网权限中间表），查询出在中间表的user信息
     * @return
     */
    Page<Acdto> findAccessControl(Page page, @Param("user") AcUserForm user);



}